const t = translate("公共模块");
// powerState();
export const tagData = computed(() => {
  return {
    title: {
      text: t.value?.["标签状态"],
      left: "center"
    },
    tooltip: {
      trigger: "item"
    },
    series: [
      {
        type: "pie",
        radius: "50%",
        data: [
          { value: 0, name: t.value?.["离线"] },
          { value: 0, name: t.value?.["在线"] }
        ]
      }
    ]
  };
});
export const deviceData = computed(() => {
  return {
    xAxis: {
      type: "category",
      data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
    },
    yAxis: {
      type: "value"
    },
    series: [
      {
        data: [150, 230, 224, 218, 135, 147, 260],
        type: "line"
      }
    ]
  };
});
export const queueData = computed(() => {
  return {
    title: {
      text: t.value?.["下发队列"],
      left: "center"
    },
    tooltip: {
      trigger: "item"
    },
    series: [
      {
        type: "pie",
        radius: "50%",
        data: [
          { value: 0, name: t.value?.["更新中"] },
          { value: 0, name: t.value?.["已完成"] },
          { value: 0, name: t.value?.["已过期"] }
        ],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: "rgba(0, 0, 0, 0.5)"
          }
        }
      }
    ]
  };
});
export const stationData = computed(() => {
  return {
    title: {
      text: t.value?.["基站状态"],
      left: "center"
    },
    tooltip: {
      trigger: "item"
    },
    series: [
      {
        type: "pie",
        radius: "50%",
        data: [
          { value: 0, name: t.value?.["离线"] },
          { value: 0, name: t.value?.["在线"] }
        ],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: "rgba(0, 0, 0, 0.5)"
          }
        }
      }
    ]
  };
});
